package ex_class;

public class Notebook {
	final String cpu;
	int ram;
	int hdd;
	
	public Notebook(String cpu, int ram, int hdd) {
		this.cpu = cpu;
		this.ram = ram;
		this.hdd = hdd;
	}
	
	public void upgrade(int ram, int hdd) {
		this.ram = ram;
		this.hdd = hdd;
		//cpu = "i7 sandybridge 3.4GHz";
	}
	
	public void upgrade(String cpu, int ram, int hdd) {
		//this.cpu = cpu;
		this.ram = ram;
		this.hdd = hdd;
	}
	
	void outSpec() {
		System.out.printf("cpu : %s, ram : %dgb, hdd :%dgb\n", cpu, ram, hdd);
	}
}
